﻿namespace ACCOUNTING
{
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_Run : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("TxtRun")]
        private TextBox _TxtRun;
        private IContainer components;

        [DebuggerNonUserCode]
        public Frm_Run()
        {
            base.Load += new EventHandler(this.Frm_Run_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.InitializeComponent();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            switch (this.TxtRun.Text.Trim())
            {
                case "0010":
                    MyProject.Forms.Frm_HienThiChucNang.ShowDialog();
                    break;

                case "0011":
                    MyProject.Forms.Frm_DinhNghiaCanDoiKeToan.ShowDialog();
                    break;

                case "0012":
                    MyProject.Forms.Frm_DuLieuThue.ShowDialog();
                    break;

                case "0000":
                    MyProject.Forms.Frm_RunSQL.ShowDialog();
                    break;
            }
            this.Dispose();
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_Run_Load(object sender, EventArgs e)
        {
            Rectangle displayRectangle = MyProject.Forms.FRMMAIN.DisplayRectangle;
            displayRectangle = MyProject.Forms.FRMMAIN.RectangleToScreen(displayRectangle);
            Point point = new Point(displayRectangle.Left, displayRectangle.Bottom - this.Height);
            this.Location = point;
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            this.TxtRun = new TextBox();
            this.Label1 = new Label();
            this.CmdOK = new Button();
            this.CmdCancel = new Button();
            this.SuspendLayout();
            Point point = new Point(0x39, 0x25);
            this.TxtRun.Location = point;
            this.TxtRun.Name = "TxtRun";
            this.TxtRun.PasswordChar = '*';
            Size size = new Size(0x109, 20);
            this.TxtRun.Size = size;
            this.TxtRun.TabIndex = 0;
            this.Label1.AutoSize = true;
            this.Label1.BackColor = Color.Transparent;
            point = new Point(0x12, 40);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x21, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 1;
            this.Label1.Text = "Open";
            point = new Point(0x94, 0x5b);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 2;
            this.CmdOK.Text = "OK";
            this.CmdOK.UseVisualStyleBackColor = true;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            point = new Point(0xf4, 0x5b);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4e, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 3;
            this.CmdCancel.Text = "Cancel";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.AcceptButton = this.CmdOK;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            this.CancelButton = this.CmdCancel;
            size = new Size(0x14e, 0x79);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.Controls.Add(this.Label1);
            this.Controls.Add(this.TxtRun);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.Name = "Frm_Run";
            this.Text = "RUN";
            this.ResumeLayout(false);
            this.PerformLayout();
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdCancel = value;
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual TextBox TxtRun
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtRun;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtRun = value;
            }
        }
    }
}

